package com.qingge.springboot.mapper;

import com.qingge.springboot.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 格温不受影响
 * @since 2022-05-02
 */
@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    /**
     * 查询用户使用次数最多的地址
     * @Param [uid]
     * @return com.qingge.springboot.entity.Address
     **/
    Address getMaxUseTimesAdd(@Param("uid") Integer uid);
}
